package jd.client.get;

import jd.client.Response;
import jd.client.exception.ResponseParseException;

/**
 * @author Denis Migol
 * 
 */
public class GetSpeedLimitResponse extends Response {

	private String speedLimit;

	@Override
	public Response parse(final String response) throws ResponseParseException {
		setSpeedLimit(response);
		return super.parse(response);
	}

	/**
	 * @param speedLimit
	 *            the speedLimit to set
	 */
	public void setSpeedLimit(final String speedLimit) {
		if (speedLimit != null) {
			this.speedLimit = speedLimit.trim();
		} else {
			this.speedLimit = speedLimit;
		}
	}

	/**
	 * @return the speedLimit
	 */
	public String getSpeedLimit() {
		return speedLimit;
	}

}
